import Vue from 'vue'
import Router from 'vue-router'
// import global from '@/core/global/global.js'
// const param = global.global.getParam();
Vue.use(Router)
const routes = [
    {
      path: '/',
      component:resolve => require(['@/components/main/index'],resolve),
      meta: {
        title: '盛大金融控股',
      },
    },
     
   
  
];


const router = new Router({
  routes,
})





router.beforeEach((to, from, next) => {
  // if (to.path == "/") {
  //   if(param.userType=="parent"){
  //      next({ path: '/culture.index' });
  //    }else if(param.userType=="teacher"){
  //       next({ path: '/culture.statistics' });
  //    }
  // } else {
  //   next();
  // }
  next();
})
export default router;
